package Vue.Chateau;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.border.LineBorder;

import Modele.Monstre;
import Modele.Squad;
import Vue.InterfacePrincipale;
import Vue.Principale.RecapRessources;


public class ChateauJeuPanelBas extends JPanel {

	private static final long serialVersionUID = 1L;
	private ChateauJeuPanelBasDroite chateauJeuPanelBasDroite;
	private ChateauJeuPanelBasGauche chateauJeuPanelBasGauche;
	private JSplitPane jsp1,jsp2;
	private ArrayList<Squad> squads;

	public ChateauJeuPanelBas() {

		this.setBorder(new LineBorder(Color.BLACK,5));
		this.setBackground(Color.BLACK);
		this.chateauJeuPanelBasDroite = new ChateauJeuPanelBasDroite();
		this.chateauJeuPanelBasGauche = new ChateauJeuPanelBasGauche();

		this.squads = new ArrayList<Squad>(16);
		//this.squads.add(new Squad(new Monstre("pikachu", 15, 5, 5, 3, 2, 3, 55,55, 3, true, 4, 5), 5));
		//this.squads.add(new Squad(new Monstre("rondoudou", 15, 5, 5, 3, 2, 3,55, 55, 3, true, 4, 5), 5));

		this.jsp1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,chateauJeuPanelBasGauche, chateauJeuPanelBasDroite);
		this.jsp1.setDividerSize(1);
		this.jsp1.setDividerLocation(245);

		this.jsp2 = new JSplitPane(JSplitPane.VERTICAL_SPLIT, this.jsp1, InterfacePrincipale.ressources);
		this.jsp2.setDividerSize(1);
		this.jsp2.setDividerLocation(150);

		this.setLayout(new BorderLayout());
		this.add(this.jsp2);

	}

	public void paintComponent(Graphics g) {

		super.paintComponent(g);
		g.setColor(Color.black);

	}

}